package com.community.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.community.common.pojo.domain.UserPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户相机权限表 Mapper 接口
 * </p>
 *
 * @author superman
 * @since 2020-08-02
 */
public interface UserPermissionMapper extends BaseMapper<UserPermission> {

    List<UserPermission> selectToSend (@Param("communityId") String communityId, @Param("cameraId")String cameraId);

    UserPermission selectByOpenId(String openId);

    List<UserPermission> selectByFriendIds(List<String> list);

    List<UserPermission> selectByFriendId(String id);

    List<UserPermission> selectByCommunityIdToInsert(String communityId);
}
